<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="Mailbox with some customizations as described in docs" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<%@ include file="/include/main_include.jsp"%>
<%@ include file="/include/form_include.jsp"%>
</head>
<body>
	<div class="modal-body" style="max-height: 716px;">
		<div id="divform" class="row mx-dialog-c bs_dialog open"> 
		   <form id="dataForm" class="form-horizontal" method="post"> 
		    <input type="hidden" id="userId" name="userId" value="${pd.userId}"/>  
		     <div class="form-group col-lg-6 col-sm-6 col-xs-6">
		        <label class="control-label mx-group-title requiredTag">用户名</label>
		        <div class="mx-group-control" style="height: 33px;">
		            <input id="userName" name="userName" type="text" class="width-100 mx-input-group" style="height: 33px;" value="${pd.userName}">
		        </div>
		    </div> 
			<div class="form-group col-lg-6 col-sm-6 col-xs-6">
		        <label class="control-label mx-group-title requiredTag">密码</label>
		        <div class="mx-group-control" style="height:33px;">
		            <input id="pwd" name="pwd" type="text" class="width-100 mx-input-group" style="height:33px;" value="">
		        </div>
		    </div>
			<div class="form-group col-lg-6 col-sm-6 col-xs-6">
		        <label class="control-label mx-group-title requiredTag">昵称</label>
		        <div class="mx-group-control" style="height:33px;">
		            <input id="name" name="name" type="text" class="width-100 mx-input-group" style="height:33px;" value="${pd.name}">
		        </div>
		    </div>
		   
		    <div class="form-group col-lg-6 col-sm-6 col-xs-6">
		        <label class="control-label mx-group-title ">电话 </label>
		        <div class="mx-group-control" style="height: 33px;">
		            <input id="phone" name="phone" type="number" class="width-100 mx-input-group" style="height: 33px;" value="${pd.phone}">
		        </div>
		    </div>
		    <c:if test="${user.role.equals('管理员')}">
		     <div class="form-group col-lg-6 col-sm-6 col-xs-6">
				<label class="control-label mx-group-title">角色</label>
				<div class="mx-group-control" style="height: 33px;">
					<select id="roleId" name="roleId" class="width-100" style="height: 33px;">
						<c:forEach items="${role }" var="record">
							<option value="${record.id }">${record.text}</option>
						</c:forEach>
					</select>
				</div>
			</div>
			</c:if>
		  </form>                  
		</div>
	</div>
	<script type="text/javascript">
	$(function() {
		 
	});
	</script>
</body>
</html>
